package com.appleyk.service;

import com.appleyk.common.utils.CommonUtil;
import com.appleyk.core.AuthUser;
import org.springframework.stereotype.Service;

/**
 * <p>认证用户业务实现</p>
 *
 * @author Appleyk
 * @version v1.0
 * @blob https://blog.csdn.net/appleyk
 * @github https://github.com/kobeyk
 * @date created on 2023/9/23:21:56
 */
@Service
public class AuthUserService {
    public String register(AuthUser user){
        return CommonUtil.retainDigit(user.getPassword());
    }
    public AuthUser query(){
        return new AuthUser().builder().uid(System.currentTimeMillis())
                .userName("appleyk").password("123456a").build();
    }
}
